home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 241 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: "Nathan Myers, http://www.cantrip.org/" <ncm@cantrip.org>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: U.S. monetary unit.
  5. Date: 2 Feb 1996 15:49:15 GMT
  6. Organization: The Cantrip Cooperative
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <31121DBC.11F4@cantrip.org>
  9. References: <4emnvr$ecu@news.duke.edu>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="us-ascii"
  13. Content-Transfer-Encoding: 7bit
  14. X-Nntp-Posting-Host: ncm.vip.best.com
  15. X-Mailer: Mozilla 2.0b6a (X11; I; SunOS 5.4 sun4m)
  16. X-Lines: 18
  17. Content-Length: 977
  18. Originator: clamage@taumet
  19.  
  20. Max TenEyck Woodbury wrote:
  21. >     The standard assumes that the unit of account is the cent or one hundreth
  22. > of a dollar.  Other units of account may be used, including the mil or one
  23. > thousandth of a dollar.  I suggest that there may be a requirement in some
  24. > applications for internal values to be held in mils while display values be
  25. > for some larger unit.
  26. >     There may be similar problems with international currencies.
  27.  
  28. The locale facets that deal with money are *only* concerned with
  29. display values.  You can represent money in any way you want, but
  30. you communicate the values to the monetary facet in the display units.
  31. It promises to represent those (display) values exactly.
  32.  
  33. (Actually, the standard makes no assumptions about monetary units,
  34. and you can't count on your vendor implementing a default of (e.g.) cents.
  35. If you want a U.S. locale, your (portable) code had better say so.)
  36.  
  37. Nathan Myers   ncm@cantrip.org   http://www.cantrip.org/   <-- works now!
  38.  
  39. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  40.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  41.   summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  42. ]
  43.